﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ywxt.Common;

namespace DB_NH.DB_Model.gxjdWebSite
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;
    /// <summary>
    /// 招标公告
    /// </summary>
    [Serializable]
    public class Project
    {
        ///// <summary>
        ///// 项目ID
        ///// </summary>
        public virtual string proj_id { get; set; }

        public Project()
        {
            proj_id = Common.NewID();
        }

        /// <summary>
        /// 项目编号
        /// </summary>
        public virtual string proj_code { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        public virtual string proj_name { get; set; }

        /// <summary>
        /// 年份
        /// </summary>
        public virtual int proj_year { get; set; }

        /// <summary>
        /// 项目所属机构
        /// </summary>
        public virtual string proj_jg { get; set; }

        /// <summary>
        /// 资金来源类型ID
        /// </summary>
        public virtual string proj_zjly_id { get; set; }

        /// <summary>
        /// 项目性质类型ID
        /// </summary>
        public virtual string proj_xmxz_id { get; set; }

        /// <summary>
        /// 项目类型ID
        /// </summary>
        public virtual string proj_xmlx_id { get; set; }

        /// <summary>
        /// 招标方式类型ID
        /// </summary>
        public virtual string proj_zbfs_id { get; set; }

        /// <summary>
        /// 招标标的类型ID
        /// </summary>
        public virtual string proj_zbbd_id { get; set; }

        /// <summary>
        /// 采购方企业ID
        /// </summary>
        public virtual string proj_owner_ent_id { get; set; }

        /// <summary>
        /// 标的物名称
        /// </summary>
        public virtual string proj_bdwmc { get; set; }

        /// <summary>
        /// 上级项目ID
        /// </summary>
        public virtual string pre_proj_id { get; set; }

        /// <summary>
        /// 是否最底层项目
        /// </summary>
        public virtual int is_leaf { get; set; }

        /// <summary>
        /// 所属员工ID
        /// </summary>
        public virtual string proj_create_user_id { get; set; }

        /// <summary>
        /// 所属业务部门ID
        /// </summary>
        public virtual string proj_create_dept_id { get; set; }

        /// <summary>
        /// 项目主管部门
        /// </summary>
        public virtual string proj_xmzgbm { get; set; }

        /// <summary>
        /// 项目总投资
        /// </summary>
        public virtual decimal proj_ztz { get; set; }

        /// <summary>
        /// 项目状态代码
        /// </summary>
        public virtual string proj_status_code { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        public virtual int is_valid { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime create_date { get; set; }

        /// <summary>
        /// 协办用户ID
        /// </summary>
        public virtual string proj_partner_user_id { get; set; }

        /// <summary>
        /// 委托时间
        /// </summary>
        public virtual DateTime proj_wtsj { get; set; }

        /// <summary>
        /// 发表刊物
        /// </summary>
        public virtual string proj_fbkw { get; set; }

        /// <summary>
        /// 项目备注
        /// </summary>
        public virtual string proj_remark { get; set; }

        /// <summary>
        /// 项目级别；根项目为0；
        /// </summary>
        public virtual int proj_level { get; set; }

        /// <summary>
        /// 排序标志
        /// </summary>
        public virtual string proj_order_flag { get; set; }

        /// <summary>
        /// 发布媒体
        /// </summary>
        public virtual string proj_fbmt { get; set; }

        /// <summary>
        /// 委托书编号
        /// </summary>
        public virtual string proj_wtsbh { get; set; }

        /// <summary>
        /// 中标通知书编号
        /// </summary>
        public virtual string proj_zbtzsbh { get; set; }

        /// <summary>
        /// 项目来源：
        /// </summary>
        public virtual string proj_xmly { get; set; }

        /// <summary>
        /// 项目来源值：
        /// </summary>
        public virtual string proj_xmlyz { get; set; }

        /// <summary>
        /// 服务费收费方式：
        /// </summary>
        public virtual string proj_sffs { get; set; }

        /// <summary>
        /// 服务费收费费率值
        /// </summary>
        public virtual string proj_sffsz { get; set; }

        /// <summary>
        /// 项目的投标保证金
        /// </summary>
        public virtual string proj_bzj { get; set; }

        /// <summary>
        /// 保证金收取方式：
        /// </summary>
        public virtual decimal proj_bzj_fs { get; set; }

        /// <summary>
        /// 项目状态标志
        /// </summary>
        public virtual string proj_status { get; set; }

        /// <summary>
        /// 项目总投资（美元）
        /// </summary>
        public virtual string proj_ztz_my { get; set; }

        /// <summary>
        /// 项目内部分类：分为：1类项目；2类项目；3类项目；
        /// </summary>
        public virtual string proj_nbfl { get; set; }

        /// <summary>
        /// 项目外部编号：用于保存公司外部编号
        /// </summary>
        public virtual string proj_wbbh { get; set; }

          /// <summary>
        /// 中标时间，默认为中标公告时间
        /// </summary>
        public virtual DateTime proj_zbsj { get; set; }
    }
}